package ro.k.web.beans.order;

import java.io.Serializable;

public class ReqManoperaBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7578704495791446331L;
	private String denumire;
	private Double valoare;
	private Double durata;

	public ReqManoperaBean(String denumire, Double valoare, Double durata) {
		super();
		this.denumire = denumire;
		this.valoare = valoare;
		this.durata = durata;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((denumire == null) ? 0 : denumire.hashCode());
		result = prime * result + ((durata == null) ? 0 : durata.hashCode());
		result = prime * result + ((valoare == null) ? 0 : valoare.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReqManoperaBean other = (ReqManoperaBean) obj;
		if (denumire == null) {
			if (other.denumire != null)
				return false;
		} else if (!denumire.equals(other.denumire))
			return false;
		if (durata == null) {
			if (other.durata != null)
				return false;
		} else if (!durata.equals(other.durata))
			return false;
		if (valoare == null) {
			if (other.valoare != null)
				return false;
		} else if (!valoare.equals(other.valoare))
			return false;
		return true;
	}

	public String getDenumire() {
		return denumire;
	}

	public void setDenumire(String denumire) {
		this.denumire = denumire;
	}

	public Double getValoare() {
		return valoare;
	}

	public void setValoare(Double valoare) {
		this.valoare = valoare;
	}

	public Double getDurata() {
		return durata;
	}

	public void setDurata(Double durata) {
		this.durata = durata;
	}
}
